import request from '@/utils/request'

// 获取城市字典
export const getCity = () => {
  return request({
    url: '/screen/city/',
    method: 'get'
  })
}
// 获取首页电子大屏数据
export const getHomeIndex = (data) => {
    return request({
      url: '/screen/index',
      method: 'get',
      params:data
    })
}
// 地图数据
export const getMapData = (data) => {
    return request({
      url: '/screen/map/',
      method: 'get',
      params:data
    })
}
export const getMapDataV2 = (data) => {
    return request({
      url: '/screen/car/',
      method: 'get',
      params:data
    })
}
// 车辆熄火状态
export const getFireStatus = (data) => {
    return request({
      url: '/screen/map/fireStatus',
      method: 'get',
      params:data
    })
}
// 近7日订单销售额
export const lastestsevensales = (data) => {
    return request({
      url: '/screen/index/lastestsevensales',
      method: 'get',
      params:data
    })
}
// 所有地区订单数
export const getareatotals = (data) => {
    return request({
      url: '/screen/index/getareatotals',
      method: 'get',
      params:data
    })
}
// 获取天气信息
export const getWeather = (data) => {
    return request({
      url: '/screen/weather',
      method: 'get',
      params:data
    })
}

// V 2.0 /////////////////////////////////////////////////////////


// 今日最新订单
export const getBasicLatest = (data) => {
    return request({
      url: '/screen/basic/latest',
      method: 'get',
      params:data
    })
}

// 销售业绩排行
export const getBasicRank = (data) => {
    return request({
      url: '/screen/basic/rank',
      method: 'get',
      params:data
    })
}

// 平均使用次数
export const getBasicAvg = (data) => {
    return request({
      url: '/screen/basic/avg',
      method: 'get',
      params:data
    })
}
// 门店于车子占比
export const getBasicShoppie = (data) => {
    return request({
      url: '/screen/basic/shoppie',
      method: 'get',
      params:data
    })
}

// 门店&车辆数
export const getBasicShop = (data) => {
    return request({
      url: '/screen/basic/shop',
      method: 'get',
      params:data
    })
}
// 昨日营业额&利用回数
export const getBasicBusiness = (data) => {
    return request({
      url: '/screen/basic/business',
      method: 'get',
      params:data
    })
}

// 本月销售额&结算收款情况
export const getBasicSales = (data) => {
    return request({
      url: '/screen/basic/sales',
      method: 'get',
      params:data
    })
}

// 获取基本参数信息
export const getBasic = (data) => {
    return request({
      url: '/screen/basic',
      method: 'get',
      params:data
    })
}

// 门店弹窗车辆状态数据
export const getInfoByShop = (data) => {
    return request({
      url: '/screen/car/infoByShop',
      method: 'get',
      params:data
    })
}
// 车辆详情
export const getCarDetail = (data) => {
    return request({
      url: '/screen/car/detail',
      method: 'get',
      params:data
    })
}







